/*
 * @Descripttion: 
 * @version: 
 * @Author: cyj
 * @Date: 2023-04-19 10:49:16
 */
const express = require('express')

const router = express.Router()

const userDetailRouter = require('../router_handle/userDetail')

//获取用户详情
router.get('/userDetail', userDetailRouter.getUserDetail);

//修改用户信息
router.post('/change', (req, res) => {
    let data = req.body
    userDetailRouter.userUpdate(data, res)
})

//获取好友昵称
router.get('/getfriendName', (req, res) => {
    let data = req.query
    userDetailRouter.getFriendMarkName(data, res)
})

//修改好友昵称
router.post('/updateFriendName', (req, res) => {
    // console.log(req.body);
    let data = req.body
    // console.log(data);
    userDetailRouter.friendMarkName(data, res)
})



module.exports = router